package com.shop.loan.model.common;

import lombok.Data;

@Data
public class ResResultByCiWei {

    private String message;

    private Object data;

    private Long serverTime;

    private Integer code;

    public ResResultByCiWei() {
    }

    public ResResultByCiWei(Code code) {
        this.code = code.getCode();
        this.message = code.getMsg();
        this.serverTime = System.currentTimeMillis();
    }

    public ResResultByCiWei(Code code, Object data) {
        this.code = code.getCode();
        this.message = code.getMsg();
        this.data = data;
        this.serverTime = System.currentTimeMillis();
    }

}
